package com.rx.core.dbase;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rx.core.enm.SENSITIVE_TYPE;

import java.lang.annotation.*;

/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @version V1.0
 * @Title: SensitiveInfo
 * @Package com.rx.core.data
 * @Description: 脱敏注解
 * @author: 陈锦韬
 * @date: 2020\9\9 0009
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
@Inherited
@Documented
@JacksonAnnotationsInside
@JsonSerialize(using = SensitiveInfoSerialize.class)
public @interface SensitiveInfo {

    SENSITIVE_TYPE value();
}
